MIME Classifier / Media Type Sniffer
This crate exposes the MIME Classifier from the Servo web engine as a standalone library.
It implements the WHATWG MIME Sniffing
standard to guess the Media Type
(also known as MIME type) of a resource from its content. It enables browsers
to properly interpret a server response even when the Content-Type
header is
missing or invalid.
The current version of the library was extracted at the date 2022-04-11 from
the commit 8d684eff7d6f8815422cb4c30b43df0035c5069a
.
If you are a member of the Servo and wish to maintain this library yourself,
I'd be glad to transfer ownership of the crate: please open a GitHub issue or
send me an email.
Usage
use ;
License
Code in this crate retains its original Mozilla Public License, version 2.0 (MPL-2.0) license from the Servo project.